<a target="_blank" ng-click="itemExpended(item, $event)">
    <span ng-if="isLeaf(item)" class="glyphicon glyphicon-list-alt"></span>
    <span ng-if="!isLeaf(item)" ng-class="{false: 'glyphicon glyphicon-folder-close', true: 'glyphicon glyphicon-folder-open'}[!!item.$$isExpended]"></span>
    <span ng-bind="item.name"></span>
</a>
<ul ng-if="!isLeaf(item)" ng-show="item.$$isExpend">
    <li ng-repeat="item in item.children" ng-include="'/tree/tree-item.html'"></li>
</ul>